let numA = {number:0}
let star = {num:numA};
let obj1 = {
    a:star
}
let obj2 = {
    a:star
}
star.num = 1;
/**
 * 浅比较指的是只比较 对象的顶级属性，如果深层属性发生变化，无法检测
 * let obj = {a:{b:{c:d:1}}}
 * @param {*} obj1 
 * @param {*} obj2 
 */
function shallowEqual(obj1,obj2){
    return obj1.a === obj2.a;
}
let result = shallowEqual(obj1,obj2);
console.log(result)